package com.dongdong.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.dongdong.mapper.TbSpecificationOptionMapper;
import com.dongdong.pojo.TbSpecificationOption;
import com.dongdong.pojo.TbSpecificationOptionExample;
import com.dongdong.service.TbSpecificationOptionService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
@org.springframework.stereotype.Service
public class TbSpecificationOptionServiceImpl implements TbSpecificationOptionService {
    @Autowired
    private TbSpecificationOptionMapper tbSpecificationOptionMapper;
    @Override
    public List<TbSpecificationOption> selectNameAndOrders(Long id) {
        TbSpecificationOptionExample tso = new TbSpecificationOptionExample();
        TbSpecificationOptionExample.Criteria c = tso.createCriteria();
        c.andSpecIdEqualTo(id);
        return tbSpecificationOptionMapper.selectByExample(tso);
    }
}
